# 字典练习


dict = {
    "王力宏": {"部门": "科技部", "工资": 3000, "级别": 1},
    "周杰伦": {"部门": "市场部", "工资": 5000, "级别": 2},
    "林俊杰": {"部门": "市场部", "工资": 7000, "级别": 3},
    "张学友": {"部门": "科技部", "工资": 4000, "级别": 1},
    "刘德华": {"部门": "市场部", "工资": 6000, "级别": 2},
}
# 字典的遍历
print("全体员工当前信息如下:")
print(dict)

for name in dict:
    if dict[name]["级别"] == 1:
        dict[name]["级别"] = 2
        dict[name]["工资"] += 1000

print("升职加薪后为")
print(dict)
